ia.Panel Class
Creates a panel widget.
Constructor
ia.Panel
-
id
-
title
Parameters:
-
id
StringThe id for the widget.
-
title
StringThe widget title.
Item Index
Methods
- _build
- _size
- addCssClass
- append
- appendToFooter
- closeable
- closeFunction
- exportable
- exportFunction
- hasSettings
- height
- hide
- maximize
- onclick
- popup
- resize
- resizeable
- resizeFunction
- restore
- setDimensions
- setPosition
- setSize
- settingsFunction
- show
- text
- title
- toggle
- tooltip
- update
- updateWidget
- visible
- width
- x
- xAnchor
- y
- yAnchor
- zIndex
Methods
_build
()
private
Builds the panel.
_size
()
private
Resizes the panel elements when the panel size or header text have changed. This is the only way at the moment to make sure the content doesnt overflow its container.
addCssClass
-
cssClass
Adds a css class to the widget.
Parameters:
-
cssClass
StringThe class to add eg. "ia-title-text".
append
-
obj
Appends an element to the panel content area.
Parameters:
-
obj
JQUERY ElementThe jquery object.
closeable
-
isCloseable
Sets or gets if its closeable.
Parameters:
-
isCloseable
Booleantrue/false.
exportable
-
isExportable
Sets or gets if its exportable.
Parameters:
-
isExportable
Booleantrue/false.
exportFunction
()
The export function.
hasSettings
-
hasSettings
Sets or gets if it has settings.
Parameters:
-
hasSettings
Booleantrue/false.
height
-
value
Get/Set the height.
Parameters:
-
value
NumberThe value (% or px for images).
hide
()
Hides the widget.
maximize
()
Maximizes the component.
onclick
-
fnc
-
target
Set the function to call when the widget is clicked.
Parameters:
-
fnc
FunctionCan be a javascript function or a src containing a link or a function such as "javascript:iaToggle(dataExplorer)".
-
target
StringThe url target - used in conjunction with the onclick event. "blank" for a new window or tab, "self" for the current page, top for the topmost frame container, or "parent" for the parent of the current frame container. Default is "blank".
popup
-
isPopup
Sets or gets if its a popup - closes on a click outside the panel.
Parameters:
-
isPopup
Booleantrue/false.
resize
()
Resizes the panel.
resizeable
-
isResizeable
Sets or gets if its resizeable.
Parameters:
-
isResizeable
Booleantrue/false.
restore
()
Restores to the current x, y, width, height.
setDimensions
-
x
-
y
-
width
-
height
-
xAnchor
-
yAnchor
Sets the dimensions.
Parameters:
-
x
NumberThe x position.
-
y
NumberThe y position.
-
width
NumberThe width
-
height
NumberThe height.
-
xAnchor
StringThe anchor x - 'left' or 'right'.
-
yAnchor
StringThe anchor y - 'top' or 'bottom'.
setPosition
-
x
-
y
-
xAnchor
-
yAnchor
Sets the position.
Parameters:
-
x
NumberThe x position.
-
y
NumberThe y position.
-
xAnchor
StringThe anchor x - 'left' or 'right'.
-
yAnchor
StringThe anchor y - 'top' or 'bottom'.
setSize
-
width
-
height
Sets the dimensions.
Parameters:
-
width
ObjectThe width.
-
height
ObjectThe height.
settingsFunction
()
The settings function.
show
()
Shows the widget.
text
-
text
Sets the content text.
Parameters:
-
text
StringThe text.
title
-
text
Sets the title text.
Parameters:
-
text
StringThe text.
toggle
()
Toggles the visibility.
tooltip
-
tip
Sets the tooltip.
Parameters:
-
tip
StringThe tooltip text.
update
-
c
Updates the component configuration.
Parameters:
-
c
ia.ComponentConfigThe component config.
updateWidget
-
c
Updates the widget configuration.
Parameters:
-
c
ia.WidgetConfigThe widget config.
visible
-
vis
Sets or gets the visibility.
Parameters:
-
vis
BooleanThe visibility.
width
-
value
Get/Set the width.
Parameters:
-
value
NumberThe value (% or px for images).
x
-
value
Get/Set the x location.
Parameters:
-
value
NumberThe value (%).
xAnchor
-
value
Get/Set the anchor x.
Parameters:
-
value
NumberThe value
y
-
value
Get/Set the y location.
Parameters:
-
value
NumberThe value (%).
yAnchor
-
value
Get/Set the anchor x.
Parameters:
-
value
NumberThe value
zIndex
-
value
Get/Set the z index.
Parameters:
-
value
NumberThe value
Properties
container
JQUERY Element
The container that holds the object.
content
JQUERY Element
The panel content container.
contentText
JQUERY Element
Allows text to be placed in the panel content.
header
JQUERY Element
The panel header.
id
String
The id.
Default: ""
name
String
The name.
Default: ""
rescale
Boolean
Resale.
Default: true